package com.wmw.Utility;

import java.io.Serializable;

import com.wmw.Utility.Dish.DishSalesState;

import siwi.map.android.Orders;



public class Dish implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -3562006349941415207L;
	private int _dishID;
	private String _dishName;
	private float _price;
	private int _totalSales;
	private DishSalesState _saleState;
	private int _leftNum;
	private int _positiveCommentsCnt;
	private int _moderateCommentsCnt;
	private int _negativeCommentsCnt;
	
	public enum DishSalesState {
		FOR_SALE, SOLD_OUT, LEFT_A_FEW,;
	}
	
	public Dish(String dishName, int totalSales,
			DishSalesState salesState, float price, int positiveCommentsCnt,
			int moderateCommentsCnt, int negativeCommentsCnt, int leftNum){
		_dishName = dishName;
		_price = price;
		_totalSales = totalSales;
		_saleState = salesState;
		_positiveCommentsCnt = positiveCommentsCnt;
		_moderateCommentsCnt = moderateCommentsCnt;
		_negativeCommentsCnt = negativeCommentsCnt;
		_leftNum = leftNum;
	}

	public Dish(Dish dish) {
		_dishName = dish.getName();
		_price = dish.getPrice();
		_totalSales = dish.getTotalSales();
		_saleState = dish.getSaleState();
		_positiveCommentsCnt = dish.getPositiveCommentsCnt();
		_moderateCommentsCnt = dish.getModerateCommentsCnt();
		_negativeCommentsCnt = dish.getNegativeCommentsCnt();
		_leftNum = dish.getLeftNum();
	}

	public int get_dishID() {
		return _dishID;
	}

	public void set_dishID(int _dishID) {
		this._dishID = _dishID;
	}
	public String getName(){ return _dishName; }
	public int getTotalSales(){ return _totalSales; }
	public float getPrice(){ return _price; }
	public DishSalesState getSaleState(){ return _saleState; }
	public int getLeftNum(){ return _leftNum; }
	public int getPositiveCommentsCnt(){ return _positiveCommentsCnt; }
	public int getModerateCommentsCnt(){ return _moderateCommentsCnt; }
	public int getNegativeCommentsCnt(){ return _negativeCommentsCnt; }
	
	public void setName(String name){ _dishName = name; }
	public void setPrice(float price){ _price = price; }
	public void setSaleState(DishSalesState state){ _saleState = state; }
	public void setLeftNum(int leftNum){ _leftNum = leftNum; }
	
	
}
